package com.dreamfire.data.map
{
	public class Map
	{
		public var id:String;
		public var name:String;
		public var version:String;
		public var priority:int;
		public var width:int;
		public var height:int;
		public var gridW:int;
		public var gridH:int;
		public var gridSize:int;
		public var descript:String;
		public var grids:Array;
		public var layers:Array;
		/**
		 * 地图横向切片数量
		 */
		public var hTilenum:int = 0;
		
		/**
		 * 地图纵向切片数量
		 */
		public var vTilenum:int = 0;
		/**
		 * 地图切片大小
		 */
		public var tileSize:int = 0;
		
		public function get backgroundImgUrl():String
		{
			return layers[0]['sprites'][0]['url'];
		}
	}
}